package types

type (
	ReqAddTask struct {
		StationId string `json:"station_id" form:"station_id" binding:"required"`
		ModelId   string `json:"model_id" form:"model_id" binding:"required"`
		TaskName  string `json:"task_name" form:"task_name" binding:"required"`
		TaskType  string `json:"task_type" form:"task_type" binding:"required"`
		TimeType  string `json:"time_type" form:"time_type" binding:"required"` //  day  week month
		Switch    string `json:"switch" form:"switch"`
		Day       int    `json:"day" form:"day"`
		//CaliType  string `json:"cali_type" form:"cali_type"`
		Number   int    `json:"number" form:"number"`
		Flow     int    `json:"flow" form:"flow"`
		Ext      int    `json:"ext" form:"ext"`
		ExecTime string `json:"exec_time" form:"exec_time" binding:"required"`
	}

	ReqDelTask struct {
		Id int64 `json:"id" form:"id" binding:"required"`
	}

	ReqModifyTask struct {
		Id        int64  `json:"id" form:"id" binding:"required"`
		StationId string `json:"station_id" form:"station_id" binding:"required"`
		ModelId   string `json:"model_id" form:"model_id" binding:"required"`
		TaskName  string `json:"task_name" form:"task_name" binding:"required"`
		TaskType  string `json:"task_type" form:"task_type" binding:"required"`
		TimeType  string `json:"time_type" form:"time_type" binding:"required"` //  day  week month
		Switch    string `json:"switch" form:"switch"`
		Day       int    `json:"day" form:"day"`
		Number    int    `json:"number" form:"number"`
		Flow      int    `json:"flow" form:"flow"`
		Ext       int    `json:"ext" form:"ext" binding:"required"`
		ExecTime  string `json:"exec_time" form:"exec_time" binding:"required"`
	}

	ReqTaskList struct {
		TimeType string `json:"time_type" form:"time_type"`
		BasePage
	}

	RespTaskList struct {
		Id        int64  `json:"id" form:"id"`
		StationId string `json:"station_id" form:"station_id"`
		ModelId   string `json:"model_id" form:"model_id"`
		TaskName  string `json:"task_name" form:"task_name"`
		TaskType  string `json:"task_type" form:"task_type"`
		TimeType  string `json:"time_type" form:"time_type"` //  day  week month
		Day       int    `json:"day" form:"day"`
		Number    int    `json:"number" form:"number"`
		Flow      int    `json:"flow" form:"flow"`
		Ext       int    `json:"ext" form:"ext"`
		ExecTime  string `json:"exec_time" form:"exec_time"`
		Switch    string `json:"switch" form:"switch"`
	}

	ReqFindTaskLog struct {
		BasePage
		StationId string `json:"station_id" form:"station_id"`
		PlanType  string `json:"plan_type" form:"plan_type"`
	}

	ReqLogDetails struct {
		Id string `json:"id" form:"id" binding:"required"`
	}
)
